package engine.newUi
{
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	
	import newx.com.control.Scroll.NxScrollPanel;
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.tab.NxTab;
	
	/**
	 * 好友界面 
	 * @author liuel
	 * 
	 */	
	public class FriendUI extends BaseUI
	{
		public static var _self           :FriendUI;
		public var border	                :MovieClip;
		//头像
		public var picGroup				:NxViewGroup;
	    public var viewGroup				:NxViewGroup;
		public var socialityTab			:NxTab;
		public var scrollPanel				:NxScrollPanel;
		/**添加好友**/
		public var btnAdd                  :NxButton;

		public static function getInstance():FriendUI
		{
			if(_self == null)
			{
				_self = new FriendUI();
			}
			return _self;
		}
		public function FriendUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		/**
		 *当完成初始化后调用 
		 */		
		override public function Init():void
		{
			FriendLogic.getInstance().Init();
		}
		
		override protected function	BeforeShow():void
		{
		    FriendLogic.getInstance().BeforeShow();	
		}
		override protected function	AfterHide():void
		{
            FriendLogic.getInstance().AfterHide();		
		}
			
	}
}